﻿using Foreglance.MVP.Views.Mediators;

namespace Foreglance.MVP.App.Persons
{
    public class PersonMediator: AbstractMediator
    {
        protected override void SetupViews()
        {
            AddView(new PersonListViewPresenter());
            AddView(new PersonDetailViewPresenter());
            GetView<PersonListViewPresenter>().OnEntitiesSelectionChanged += (sender, entities) => GetView<PersonDetailViewPresenter>().SelectEntities(entities);
        }
    }
}
